package cate.common.table.d;

import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "任务")
public class GDTask {

    @NoteClass(value = "任务-持续时间类型")
    public static class Duration {

        @NoteField(value = "一段时间")
        public static final byte PERIOD = 0;

        @NoteField(value = "永久")
        public static final byte PERMANENT = 1;

        @NoteField(value = "每日")
        public static final byte DAILY = 2;

        @NoteField("每周")
        public static final byte WEEKLY = 3;
    }

    @NoteClass(value = "任务-检测类型")
    public static class CheckType {
        /**
         * 以记录的当前值进行比较
         */
        public static final byte CUR = 0;
        /**
         * 以记录的最小值进行比较
         */
        public static final byte MIN = 1;
        /**
         * 以记录的最大值进行比较
         */
        public static final byte MAX = 2;
    }

    @NoteClass(value = "任务-检测操作")
    public static class CheckOper {
        /**
         * 检查值=目标值
         */
        public static final byte EQ = 0;
        /**
         * 检查值<=目标值
         */
        public static final byte LTE = 1;
        /**
         * 检查值>=目标值
         */
        public static final byte GTE = 2;
    }

    @NoteClass(value = "条件-持续时间类型")
    public static class Condition {

        @NoteField(value = "一段时间")
        public static final byte PERIOD = 0;
        @NoteField(value = "永久")
        public static final byte PERMANENT = 1;
        @NoteField(value = "天")
        public static final byte DAY = 2;
        @NoteField(value = "周")
        public static final byte WEEK = 3;
        @NoteField(value = "月")
        public static final byte MONTH = 4;
        @NoteField(value = "不需要记录的礼包的preTid")
        public static final int UN_GROUP = -1;
        @NoteField(value = "带前置礼包组中无前置的一项")
        public static final int GROUP_TOP = 0;
    }
}
